Properties

Name Returns Notes Example
assetTypeManager AssetTypeManager
assetService AssetService
assetsAppIndexer AssetsAppIndexer

Methods

Name Returns Notes Example
contentSearch ( query, includedTypeNames, excludedTypeNames, startPosition, pageSize, orderBy, orderDirection ) List
contentSearch ( query, includedTypeNames, excludedTypeNames, props ) List
find ( id ) Asset Find an asset by its uniqueID
find ( r ) Asset Find an asset by a relation which points to it
findSingleRelated ( from, relation ) Asset
findRelated ( from, relation ) List
findByName ( name ) Asset
findContentType ( type ) ContentType
fieldValues ( asset ) Map Alias for getFieldValues
fieldValue ( asset, fieldDef ) Object Return the typed value of the given field for the asset
fieldValue ( asset, fieldDef, langCode ) Object
findAction ( at, asset ) AssetAction
findView ( asset ) AssetView
findView ( at ) AssetView
delete ( assetIds ) void
delete ( asset ) void
evaluateSingleAssetQuery ( query, context ) Asset
evaluateAssetQuery ( query ) List
evaluateAssetQuery ( query, orderField, orderAscending ) List
evaluateAssetQuery ( query, context, orderField, orderAscending ) List
getFields ( asset ) List Return all field definitions for the given asset
relationsToAssets ( isFrom, relations ) List
isNew ( asset ) boolean True if the instance is not yet persisted
getText ( asset ) String
getText ( asset, langCode ) String Get the asset's textual representation for the given language if provided, otherwise return the default text
setTranslatedText ( asset, langCode, text ) void
createTranslation ( asset, createLangCode ) Asset
getTranslations ( asset ) List
getCurrentTranslation ( asset ) Asset
listAvailableAssets ( def, asset ) List
findFieldDef ( asset, fieldName ) ContentTypeFieldDef